package com.zysc.processflow.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zysc.processflow.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zysc.processflow.pojo.HandleRecordPO;
import com.zysc.processflow.pojo.RecordOpenParam;

import java.util.List;

/**
 * <p>
 * 处置流程记录表 服务类
 * </p>
 *
 * @author 正元智慧城市_
 * @since 2022-11-18
 */
public interface IHandlerecordService extends IService<Handlerecord> {

    List<Handlerecord> GetHandlerecordListByPage(IPage<Handlerecord> page, String handlestatus, Long begintime, Long endtime, String id);

    List<HandleRecordPO> getNotFinishedAlarmRecord();
    List<HandleRecordPO> getNotFinishedAlarmRecordAfterTime(Long time);

    //根据记录id,流程id,生成所有的该流程的活动节点

    //根据记录id,流程id,生成所有的该流程的活动节点
    List<Handlerecordcurrentnode> genAllInitProcessNodeList(String recordId, String processId);

    HandleRecordPO startRecord(RecordOpenParam entity);

    Boolean checkRecordValid(RecordOpenParam entity);

    HandleRecordPO genHandlerecordByProcess(RecordOpenParam entity);

    HandleRecordPO getRecordFullInfoByRecordId(String id);

    Boolean deleteRecordById(String id);
}
